/**
 * Copyright (C), 1968-2019, 美的集团股份有限公司
 * FileName: TreeNode
 * Author:   fanyl5
 * Date:     2019/4/20 14:46
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.ruiysoft.crm.model.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @author: fanyl5
 * @date: 2019/4/20 14:46
 * @version: 1.0.0
 */
@Data
public class TreeNode {
    protected int id;
    protected int parentId;
    protected List<TreeNode> children = new ArrayList<>();

    public void add(TreeNode treeNode) {
        children.add(treeNode);
    }
}
